package events;
import simulation.Echeancier;
import simulation.StationState;


public class LeavePiste2A extends Event {

	@Override
	public String toString() {
		return "Un skieur arrive au milieu de la piste 2 [T="+Echeancier.toHour(date)+"]";
	}

	@Override
	public void treat(Echeancier e) {
		Event next = new BackToStation(2);
		next.date = date + 2 + StationState.exp1.next();
		StationState.p2B++;
		StationState.p2A--;
		e.ajouter(next);
	}

}
